import ThemeContext from "./context/theme-context";

export function Home() {
    return (
        <div>
            {/*函数式组件使用context共享数据*/}
            {
                <ThemeContext.Consumer>
                    {
                        (value) => {
                            return <span>我是home:{value.color}</span>
                        }
                    }
                </ThemeContext.Consumer>
            }
        </div>
    )
}